package com.bjx.flow.mmx.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @desc: 流程实例数据实体
 * @author: liushuai
 * @date: 2023/05/22
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("mmx_flow_instance")
@Schema(title = "MmxFlowInstance",description = "流程实例")
public class MmxFlowInstanceEntity {
      /**
      * 实例Id
      */
      @TableId(type = IdType.AUTO)
      @Schema(title = "instanceId",description = "实例Id")
      private  Long instanceId; 
      
      /**
      * 实例名称
      */
      @Schema(title = "instanceName",description = "实例名称")
      private  String instanceName; 
      
      /**
      * 定义Id
      */
      @Schema(title = "definitionId",description = "定义Id")
      private  Long definitionId; 
      
      /**
      * 定义key
      */
      @Schema(title = "definitionKey",description = "定义key")
      private  String definitionKey; 
      
      /**
      * 业务Id
      */
      @Schema(title = "businessId",description = "业务Id")
      private  String businessId; 
      
      /**
      * 创建时间
      */
      @Schema(title = "createTime",description = "创建时间")
      private  Date createTime; 
      
      /**
      * 扩展字段1
      */
      @Schema(title = "ext1",description = "扩展字段1")
      private  String ext1; 
      
      /**
      * 扩展字段2
      */
      @Schema(title = "ext2",description = "扩展字段2")
      private  String ext2; 
      
      /**
      * 扩展字段3
      */
      @Schema(title = "ext3",description = "扩展字段3")
      private  String ext3;

      @Schema(title = "createUser",description = "创建用户")
      private String createUser;


      @Schema(title = "version",description = "乐观锁")
      private Integer version;

      @Schema(title = "status",description = "流程状态")
      private Integer status;
      
}